//
// CZoneManager.java
// Copyright (C) 2010  "Naush" <naush _ hotmail _ fr>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>./* ----------------------------------------------------------------------------







package org.ryzom.nel.threed;

public class CZoneManager {
  private long swigCPtr;
  protected boolean swigCMemOwn;

  public CZoneManager(long cPtr, boolean cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = cPtr;
  }

  public static long getCPtr(CZoneManager obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwn) {
        swigCMemOwn = false;
        nel3dJNI.delete_CZoneManager(swigCPtr);
      }
      swigCPtr = 0;
    }
  }

  public CZoneManager() {
    this(nel3dJNI.new_CZoneManager(), true);
  }

  public void checkZonesAround(long x, long y, long area, Vector_uint16 validZoneIds) {
    nel3dJNI.CZoneManager_checkZonesAround__SWIG_0(swigCPtr, this, x, y, area, Vector_uint16.getCPtr(validZoneIds), validZoneIds);
  }

  public void checkZonesAround(long x, long y, long area) {
    nel3dJNI.CZoneManager_checkZonesAround__SWIG_1(swigCPtr, this, x, y, area);
  }

  public boolean isWorkComplete(SWIGTYPE_p_NL3D__CZoneManager__SZoneManagerWork rWork) {
    return nel3dJNI.CZoneManager_isWorkComplete(swigCPtr, this, SWIGTYPE_p_NL3D__CZoneManager__SZoneManagerWork.getCPtr(rWork));
  }

  public boolean isLoading() {
    return nel3dJNI.CZoneManager_isLoading(swigCPtr, this);
  }

  public boolean isRemoving() {
    return nel3dJNI.CZoneManager_isRemoving(swigCPtr, this);
  }

  public long getNumZoneLeftToLoad() {
    return nel3dJNI.CZoneManager_getNumZoneLeftToLoad(swigCPtr, this);
  }

  public void clear() {
    nel3dJNI.CZoneManager_clear(swigCPtr, this);
  }

  public void setZonePath(String zonePath) {
    nel3dJNI.CZoneManager_setZonePath(swigCPtr, this, zonePath);
  }

  public String getZonePath() {
    return nel3dJNI.CZoneManager_getZonePath(swigCPtr, this);
  }

  public void setZoneTileColor(boolean monochrome, float factor) {
    nel3dJNI.CZoneManager_setZoneTileColor(swigCPtr, this, monochrome, factor);
  }

}
